//
//  FRQWalletVerificationWebViewController.m
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/11/13.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import "FRQWalletVerificationWebViewController.h"
#import "WalletVerificationWebViews.h"
@interface FRQWalletVerificationWebViewController ()
@property (nonatomic,strong) WalletVerificationWebViews *walletVerificationWebView;
@end

@implementation FRQWalletVerificationWebViewController
- (WalletVerificationWebViews *)walletVerificationWebView{
    if (nil==_walletVerificationWebView) {
        _walletVerificationWebView=skXibView(@"WalletVerificationWebViews");
        [self.view addSubview:_walletVerificationWebView];
        [_walletVerificationWebView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.mas_topLayoutGuide);
            make.bottom.mas_equalTo(self.mas_bottomLayoutGuide);
            make.right.left.mas_equalTo(0);
        }];
        @weakify(self)
        [[_walletVerificationWebView.btnClose rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
            @strongify(self)
            [self dismissViewControllerAnimated:NO completion:^{
                if (self.webBack) {
                    self.webBack();
                }
            }];
        }];
    }
    return _walletVerificationWebView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.walletVerificationWebView.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://auth-dot-tokenshow.uc.r.appspot.com/"]]];
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
